<!---RECENT REVIEWS----------------------------------------------------------------> 

<?php
# RECENT REVIEWS -->
$recent_reviews = $this->reviews_model->get_recent_reviews(5);
?>

<?php if (isset($recent_reviews)) { ?>
    <div class="box_2">
        <div class="title bold reg">Most Recent Reviews
            <a href="#" class="detail_search inline-block bold fright">See all</a>
        </div>
        <div class="small_text_box">
            <ul>
                <?php foreach ($recent_reviews as $recent_reviews): ?>
                    <?php $rev = strip_tags($recent_reviews->description);?> 
                    <li> 
                        <img src="<?= base_url() ?>assets/images/stars-<?= $recent_reviews->value; ?>.png" 
                             alt="<?= $this->pickup_model->get_pickup_info(14, $recent_reviews->value)->description; ?>"   />
                        <span class="color_2 bold"><?= $recent_reviews->name; ?> </span>
                        - <a href="<?= base_url(); ?>review/detail/<?= url_title($recent_reviews->description,'-',TRUE); ?>/<?= $recent_reviews->id; ?>" title="View Detail Review">  <?= substr($rev, 0, 100); ?>...</a></li>
                <?php endforeach; ?>
            </ul>

        </div>
    </div>
<?php } ?>